<?php
add_action('load_head_styles_scripts','plugin_head_styles_scripts');
function plugin_head_styles_scripts()
{
	#Theme urls for Style Picker
	echo "\n <script type='text/javascript'>\n\t";
	echo "var mytheme_urls = {";		
	echo "\n \t\tajaxurl:'".admin_url('admin-ajax.php' )."'";
	echo "\n \t\t,url:'".get_site_url()."'";
	echo "\n\t};\n";
	echo " </script>\n";
	#Theme urls for Style Picker End

	// style
	wp_register_style( 'normalize', get_template_directory_uri() . '/css/style.css');
	wp_enqueue_style( 'normalize' );
	wp_register_style( 'responsive', get_template_directory_uri() . '/css/responsive.css');
	wp_enqueue_style( 'responsive' );	
	
	wp_enqueue_script('jquery');
	wp_register_script('ajaxscript_js',get_template_directory_uri().'/js/ajaxscript.js', false);
    wp_enqueue_script('ajaxscript_js');
    wp_register_script('images_js',get_template_directory_uri().'/js/responsive-images.js', false);
    wp_enqueue_script('images_js');
    
}





//// ======================= Support online ======================================
function db_widget_support_online_message()
{
	global $options;
		
	$html = '	
		<div class="widget-support-online-popup">
			<div class="yahoo-support">
				
				<div class="yahoo-list">';
					if($options['contact-yahoo'])
					{
						foreach ($options['contact-yahoo'] as $value) 
						{
							$html .= '<label><a href="ymsgr:sendIM?'.$value.'"><img alt="'.get_bloginfo('name').'" src="http://opi.yahoo.com/online?u='.$value.'&amp;m=g&amp;t=5"/>'.$value.'</a></label>';
						}
					}				
	$html .= '	</div>
				<div class="yahoo-icons">
					<img alt="'.get_bloginfo('name').'" src="'.get_bloginfo('template_url').'/images/yahoo-icon.png" />
				</div>
			</div>
			<div class="skype-support">
				<div class="skype-list">';
				if($options['contact-skype'])
				{
					foreach ($options['contact-skype'] as $value)
					{
						$html .= '<label><a href="skype:'.$value.'?chat"><img alt="'.get_bloginfo('name').'" src="'.get_bloginfo('template_url').'/images/sky-on.png"/>'.$value.'</a></label>';
					}	
				}	
								
	$html .='				
				</div>			
				<div class="skype-icons">
					<img alt="'.get_bloginfo('name').'" src="'.get_bloginfo('template_url').'/images/skype-icon.png" />			
				</div>				
			</div>
			<div class="phone-support">
				<div class="phone-list">';
				if($options['contact-phone'])
				{
					foreach ($options['contact-phone'] as $value)
					{
						$html .= '<label><span>'.$value.'</span></label>';		
					}
				}
	$html .= '	</div>
				<div class="phone-icons">
					<img alt="'.get_bloginfo('name').'" src="'.get_bloginfo('template_url').'/images/phone-icon.png" />		
				</div>				
			</div>
		</div>
	';

 	echo $html;					
}


//// ============================= Popup message===================================================
function db_widget_cart_popup_message()
{

	echo '
	<div id="widget-saving-bg-popup" class="hidden_popup_bg">
		<div class="widget-content-text-popup">
			
		</div>
	</div>
		
	<div id="content-text-payment">			
		
	</div>		
	
	';

}